package com.hx.study.service;

import java.util.List;

import com.hx.study.domain.QuestionAnswer;

/**
 * 候选答案Service接口
 *
 * @author user
 * @date 2022-06-06
 */
public interface IQuestionAnswerService {
    /**
     * 查询候选答案
     *
     * @param id 候选答案主键
     * @return 候选答案
     */
    public QuestionAnswer selectQuestionAnswerById(Integer id);

    /**
     * 查询候选答案列表
     *
     * @param questionAnswer 候选答案
     * @return 候选答案集合
     */
    public List<QuestionAnswer> selectQuestionAnswerList(QuestionAnswer questionAnswer);

    /**
     * 新增候选答案
     *
     * @param questionAnswer 候选答案
     * @return 结果
     */
    public int insertQuestionAnswer(QuestionAnswer questionAnswer);

    /**
     * 修改候选答案
     *
     * @param questionAnswer 候选答案
     * @return 结果
     */
    public int updateQuestionAnswer(QuestionAnswer questionAnswer);

    /**
     * 批量删除候选答案
     *
     * @param ids 需要删除的候选答案主键集合
     * @return 结果
     */
    public int deleteQuestionAnswerByIds(Integer[] ids);

    /**
     * 删除候选答案信息
     *
     * @param id 候选答案主键
     * @return 结果
     */
    public int deleteQuestionAnswerById(Integer id);
}
